function [output] = ppm_mod (size, input)
% Function for PPM Modulation.
% size: Size of PPM

len = length(input);

output = zeros(1, size*len);

for i=1:len
    output((i-1)*size+input(i)+1)=1;
end
